package com.example.compose.biometricauthentic

import androidx.compose.foundation.layout.statusBarsPadding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.example.compose.biometricauthentic.signin.SignInScreen
import com.example.compose.biometricauthentic.signup.SignUpScreen
import com.example.compose.biometricauthentic.utils.NavigationRoutes

@Composable
fun BiometricScreen() {
    val navController = rememberNavController()
    NavHost(
       modifier = Modifier.statusBarsPadding(),
        navController = navController,
        startDestination = NavigationRoutes.SIGN_IN,
        builder = {
            composable(route = NavigationRoutes.SIGN_IN) {
                SignInScreen(onClicked = { navController.navigate(NavigationRoutes.SIGN_UP) })
            }
            composable(route = NavigationRoutes.SIGN_UP) {
                SignUpScreen()
            }
        }
    )
}